﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<brjostagjof.Models.PracticalInformation>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Upplýsingar
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Hagnýtar upplýsingar eftir flokkum:</h2>

           <% foreach (var item in Model) { %>
            <h2 class="title"><a href="/PracticalInformation/GetPracticalInformationByID/<%: item.InformationBase.ID %>"><%: item.InformationBase.headline%></a></h2>
            <p class="meta">Skrifað þann: <%: item.InformationBase.date%> 
	            &nbsp;&bull;&nbsp;<%: item.InformationCategory.category%> &nbsp;&bull;&nbsp; <a href="#" class="permalink">Öll frétt</a></p>
            <div class="entry">
            <div class="entry-bgtop">
            <div class="entry-bgbtm">

                <p><%= item.InformationBase.context %></p>
            </div>
            </div>
            </div>
                <% if (Page.User.IsInRole("Administrators"))
                   { %>
                   <a href="/PracticalInformation/EditPracticalInformation/<%: item.InformationBase.ID %>">Breyta síðu</a>                   
                <%} %>
            <%  } %>
            
</asp:Content>
